package com.basic.library.view.drawableview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.CheckBox;

/**
 * Created by YYS on 2018/6/11.
 */
public class DrawableCheckBox extends DrawableRadioButton {
    public DrawableCheckBox(Context context) {
        super(context, null);
    }

    public DrawableCheckBox(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public DrawableCheckBox(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void toggle() {
        setChecked(!isChecked());
    }

    @Override
    public CharSequence getAccessibilityClassName() {
        return CheckBox.class.getName();
    }
}
